const ora = require('ora');
const chalk = require('chalk');
const opn = require('opn');
 
const spinner = ora('Loading unicorns').start();
 
setTimeout(() => {
    spinner.color = 'yellow';
    spinner.text = 'Loading rainbows';
    console.log(chalk.cyan('  Build complete.\n'))
}, 1000);

setTimeout(function() {
    console.log(chalk.yellow('  Build stop.\n'))
    spinner.stop();

    opn('http://www.baidu.com')
}, 2000);

